'''
Author: 红色梧桐 940120450@qq.com
Date: 2024-09-04 22:40:00
LastEditors: 红色梧桐 940120450@qq.com
LastEditTime: 2024-09-04 23:00:31
FilePath: \myReader\applications\models\wx.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''

from datetime import datetime
from . import baseModel
from sqlalchemy import Column, String, Integer, DateTime, TEXT, ForeignKey


class WxMessage(baseModel):
    __tablename__ = "wx_chat_message"
    id = Column(Integer, primary_key=True, autoincrement=True, comment="主键ID")
    wx_id = Column(String(50), comment="微信id")
    user = Column(String(50), comment='用户')
    send_user = Column(String(100), comment='发送用户')
    message = Column(TEXT(), comment='内容')
    create_time = Column(DateTime, default=datetime.now, comment='创建时间')